perm filename SAISTS.FAI[S,AIL]1 blob
sn#102572 filedate 1974-05-22 generic text, type T, neo UTF8
COMPIL(STS,<GETSTS,SETSTS>
,<SAVE,RESTR,SIMIO,GOGTAB,GETCHN,X11,X33,X22>
,<GETSTS AND SETSTS>)
.STS:
HERE(GETSTS)
PUSHJ P,SAVE
LOADI7 A,<GETSTS>
MOVE CHNL,-1(P) ;CHANNEL #
PUSHJ P,GETCHN
XCT IOSTATUS,SIMIO ;DO THE UUO
JFCL
MOVE A,FSTATS(USER) ;THE RESULT
MOVEM A,RACS+A(USER) ;SO RESTR WORKS
MOVE LPSA,X22
JRST RESTR
HERE(SETSTS)
PUSHJ P,SAVE
LOADI7 A,<SETSTS>
MOVE CHNL,-2(P)
PUSHJ P,GETCHN
MOVE A,-1(P) ;INTENDED STATUS BITS
XCT SETIOSTS,SIMIO ;XECUTE THE INST
JFCL ;SHOULDN'T SKIP
MOVE LPSA,X33
JRST RESTR ;GO RESTORE
ENDCOM(STS)